<div th:fragment="xypl-modal">
<meta charset="UTF-8" />
<meta http-equiv="pragma" content="no-cache"></meta>
<meta http-equiv="cache-control" content="no-cache"></meta>
<meta http-equiv="expires" content="0"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body{
	padding: 0px 10px;
}
button{
	width:97px;
	background: #3399FF!important;
}
</style>
<script type="text/javascript">
function loadTdData(){
	var tdparam = {
			pageNumber:1,
		    pageSize:100,
		    TDZT:1
		};
		//{"url": contextRoot + "tdgl/"}
		var tdurl = $.QuickUrlUtils.getProjectName() + "/tdgl/";
		//var tdurl = getRootPath()+"/tdgl/"
		$.QuickRemote.AjaxJson(tdurl,function(result){
		    //console.log("loadTdData-"+JSON.stringify(result));
			if (result.rows != null) {
				$('#XYTDID').empty();
				$('#XYTDID').append("<option value=''>--请选择--</option>");
				for (var i = 0; i < result.rows.length; i++) {
					$('#XYTDID').append("<option value='" + result.rows[i].TDID + "'>"+ result.rows[i].TDMC + "</option>");
				}
			}
		},tdparam);
}

function loadDataXyFwb(){
	var tdparam = {
			pageNumber:1,
		    pageSize:100,
		    FWBZT:1
		};
		//{"url": contextRoot + "tdgl/"}
		var fwburl = $.QuickUrlUtils.getProjectName() + "/fwb/";
		//var tdurl = getRootPath()+"/tdgl/"
		$.QuickRemote.AjaxJson(fwburl,function(result){
		    //console.log("result-"+JSON.stringify(result));
			if (result.rows != null) {
				$('#XYFWBID').empty();
				$('#XYFWBID').append("<option value=''>--请选择--</option>");
				for (var i = 0; i < result.rows.length; i++) {
					$('#XYFWBID').append("<option value='" + result.rows[i].FWBID + "'>"+ result.rows[i].FWBMC + "</option>");
// 					$('#XYFWBID').append($("<option>").html(11).attr("value","11"));
					//var str='3,4,5,6';
				    //var arr=str.split(',');
				    //$('#XYFWBID').selectpicker('val', arr);
				}
				$('#XYFWBID').selectpicker('refresh');
			}
		},tdparam);
}

</script>
<script type="text/html" id="xyplModal">
<!-- 模态框（Modal）-->
<div class="modal fade" id="xypl-Modal" style="height: 100%;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width:60%;">
        <div class="modal-content">
            <div class="panel panel-default">
			<div class="panel-heading">
             <h4 class="panel-title"><span class="notice"></span></h4>
            </div>
			<div class="table-responsive" >
			 <table id="table_qyxx" class="table table-bordered">
			 	<tr>
					<td>签约时间</td>
					<td> 
					 <input id="QYSJ" name="QYSJ" disabled="true" style="width: 100%;height:30px;" class="input-text laydate-icon dataField" onclick="laydate()"/>
					</td>
					<td>到期时间</td>
					 <td>
                      <input id='JSSJ' name="JSSJ" disabled='true' style="width: 100%;height:30px;" class="input-text laydate-icon dataField" onclick="laydate()"/>
					</td>
				</tr>
				<tr>
					<td>签约团队</td>
                     <td>
						<input id="TDMC" = class="form-control dataField" disabled="true"  name="TDMC">
					</td>
					<td>签约服务包</td>
                     <td>
                           <input  class="form-control dataField" disabled="true" id="FWBMC" name="FWBMC">
					</td>
				</tr>
				<tr>
					<td>续约开始时间</td>
					<td>
                      <input id="XYSXSJ" name="XYSXSJ" disabled="true" style="width:100%;height:30px;"  class="input-text laydate-icon dataField" onclick="laydate()"/>
					</td>
					<td>续约结束时间</td>
					<td>
                      <input id="XYJSSJ" name="XYJSSJ" disabled="true" style="width: 100%;height:30px;"  class="input-text laydate-icon dataField" onclick="laydate()"/>
					</td>
				</tr>
                <tr>
					<td>续约团队</td>
					<td>
                      <select id="XYTDID" class="form-control"></select>
					</td>
					<td>续约服务包</td>
					<td>
                      <div style="width: 260px;height: 20px;position: absolute;top: 192px;right: 8px;">
                       		<select id="XYFWBID"  class="selectpicker show-tick form-control" multiple >
                            </select>
                      </div>
					</td>
				</tr>
			 </table>
			</div>
		</div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary enter" >确认</button>
                <button type="button" class="btn btn-default back" data-dismiss="modal">返回</button>
            </div>
        </div>
    </div>
</div> 
</script>